<?php

/**
 * @author Christoph Vieth <mail@christoph-vieth.de>
 */
include_once 'module.php';
$flur = new flurCtl();
$flur -> setColor(0,0,0);
/*
while (true) {
    /*
    $flur->setColor(0, 0, 0);
    /*
      $flur->loadStream("animations/us-police.csv");
      for ($i = 0; $i < 10; $i++) {
      $flur->playStream();
      }


      $flur->unloadStream();
     * 
     */
/*
    $flur->setColor(0, 255, 255);
    
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 255, 255);
    $flur->setColor(0, 0, 0);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);
    $flur->setColor(255, 0, 0);
    $flur->setColor(0, 255, 0);
    $flur->setColor(0, 0, 255);

    for ($i = 2; $i < 32; $i = $i * $i) {

        $flur->fadeToColor(255, 0, 0, $i);
        $flur->fadeToColor(0, 255, 0, $i);
        $flur->fadeToColor(0, 0, 255, $i);
    }
    $flur->fadeToColor(255, 255, 255, 32);
    $flur->fadeToColor(128, 0, 64, 16);
    $flur->loadStream("animations/strobe.csv");
    for ($i = 0; $i < 15; $i++) {
        $flur->playStream();
    }
    $flur->unloadStream();

    $flur->loadStream("animations/us-police.csv");
    for ($i = 0; $i < 5; $i++) {
        $flur->playStream();
    }


    $flur->unloadStream();
    
}
 * */
 
?>
